package com.tzbank.entity;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.annotations.Table;

import javax.persistence.Column;
import javax.persistence.Entity;
import java.io.Serializable;

@Data
@EqualsAndHashCode(callSuper = false)
@Entity(name = "mb_business_element")
@Table(appliesTo = "mb_business_element", comment = "业务表")
public class BusinessElement extends BaseModel implements Serializable {

	private static final long serialVersionUID = -3385552459879967601L;

	public BusinessElement() {
	}

	/**
	 * 业务ID
	 */
	@ApiModelProperty(value = "业务ID")
	@Column(name = "business_id", columnDefinition = "varchar(50) NOT NULL COMMENT '业务Id'")
	private String businessId;

	/**
	 * 业务名称
	 */
	@ApiModelProperty(value = "业务名称")
	@Column(name = "business_name", columnDefinition = "varchar(50) NOT NULL  COMMENT '业务名称'")
	private String businessName;

	/**
	 * 业务字段ID
	 */
	@ApiModelProperty(value = "业务字段ID")
	@Column(name = "business_fields_id", columnDefinition = "varchar(50) NOT NULL  COMMENT '业务字段ID'")
	private String businessFieldsId;

	/**
	 * 业务字段名称
	 */
	@ApiModelProperty(value = "业务字段名称")
	@Column(name = "business_fields_name", columnDefinition = "varchar(50) NOT NULL  COMMENT '业务字段名称'")
	private String businessFieldsName;

	/**
	 * 业务字段描述
	 */
	@ApiModelProperty(value = "业务字段描述")
	@Column(name = "business_fields_desc", columnDefinition = "varchar(50) DEFAULT NULL  COMMENT '业务字段描述'")
	private String businessFieldsDesc;

	/**
	 * 备注
	 */
	@ApiModelProperty(value = "备注")
	@Column(name = "remark", columnDefinition = "varchar(100) DEFAULT NULL  COMMENT '备注'")
	private String remark;

}
